package com.oop.demo01;

import java.io.IOException;

//类
public class Demo01 {
    //方法，主方法；
    public static void main(String[] args) {
        int c = max(82,22);
        System.out.println(c);
        System.out.println(sayHello());
    }
    public static String sayHello(){
        return "hello world";
    }

    public static int max(int a ,int b){
        int max = a;
        if (a>b){
            return max;
        }else {
            max = b;
            return max;
        }
    }
    //抛出异常
    public static void readFile(String name) throws IOException{

    }

}
